/*
 * AddVegetableButtonMouseListener.cpp
 *
 *  Created on: 11-01-2011
 *      Author: Przemek
 */

#include "listener/AddVegetableButtonMouseListener.hpp"
#include "world/creation/VegetableCreateToolState.hpp"

AddVegetableButtonMouseListener::AddVegetableButtonMouseListener(CreationState* creationState) :
	creationState(creationState)
{

}

void AddVegetableButtonMouseListener::mouseReleased(const MouseListener::EventArguments&)
{
	creationState->setCreateTool(new VegetableCreateToolState());
}
